home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / wb / czesc_2 / ml / man / dos / echo < prev    next >
Text File  |  1993-01-23  |  2KB  |  50 lines

  1. ECHO(1)                         DOS COMMANDS                         ECHO(1)
  2.  
  3. NAME
  4.      ECHO : To print a string on the screen.
  5.  
  6. SYNOPSIS
  7.      ECHO <string> [NOLINE] [FIRST <nn>] [LEN <nn>]
  8.  
  9. TEMPLATE
  10.      ECHO "STRING,NOLINE/S,FIRST/S,LEN/S"
  11.  
  12. PATH
  13.      C:
  14.  
  15. DESCRIPTION
  16.            ECHO is normally used inside script files to print a string on the
  17.      screen. It can also be used to create a one line file or to append a
  18.      line to a file, using the redirection options.
  19.            With the FIRST option, it is possible to skip a few characters of
  20.      the string to print. The LEN option is chosen, to fix the size of the
  21.      string to print. These 2 options are useful when printing strings stored
  22.      in variables, as for constant strings, one would truncate them by
  23.      hand.
  24.  
  25. OPTIONS
  26.      NOLINE : does not start a new line after printing the string. Anything
  27.            printed afterwards will be printed at the left of the string
  28.            printed by ECHO.
  29.  
  30.      FIRST  <nn> : specifies the position in the string of the first
  31.            character to print. The first character of the string is counted
  32.            as zero, so the argument can be seen as the number of characters
  33.            to skip in the string.
  34.  
  35.      LEN <nn> : specifies the number of characters to echo. ECHO will print
  36.            the specified number of characters from the position set with the
  37.            FIRST option. If no FIRST option is selected, ECHO will print the
  38.            <nn> rightmost characters of the string.
  39.  
  40. EXAMPLES
  41.      > ECHO 12345
  42.      12345
  43.  
  44.      > ECHO 123456789 FIRST 4 LEN 2
  45.      45
  46.  
  47.      > ECHO >ListAll "list ALL" ; Creates a one line file.
  48.  
  49.      > ECHO >>MyFile "One more line at the end!" ; appends 1 line to MyFile.
  50.